DibiException

Dibi is not connected to database.

Source file

File: /domains1/do1820800/public/www_root/liveclass/libs/dibi/dibi.min.php   Line: 964

Line 957:    static
Line 958:    function
Line 959:    isConnected(){return(self::$connection!==NULL)&&self::$connection->isConnected();}public
Line 960:    static
Line 961:    function
Line 962:    getConnection($name=NULL){if($name===NULL){if(self::$connection===NULL){throw
Line 963:    new
Line 964:    DibiException('Dibi is not connected to database.');}return
Line 965:    self::$connection;}if(!isset(self::$registry[$name])){throw
Line 966:    new
Line 967:    DibiException("There is no connection named '$name'.");}return
Line 968:    self::$registry[$name];}public
Line 969:    static
Line 970:    function
Line 971:    setConnection(DibiConnection$connection){return

Call stack

  1. dibi/dibi.min.php (983) source   dibi:: getConnection ()

  2. models/VoteManager.php (30) source   dibi:: query (arguments )

  3. presenters/HomepagePresenter.php (29) source   VoteManager-> addVote (arguments )

  4. <PHP inner-code> HomepagePresenter-> renderVote ()

  5. Reflection/MethodReflection.php (76) source   ReflectionMethod-> invokeArgs (arguments )

  6. Application/PresenterComponent.php (94) source   MethodReflection-> invokeNamedArgs (arguments )

  7. Application/Presenter.php (205) source   PresenterComponent-> tryCall (arguments )

  8. Application/Application.php (144) source   Presenter-> run (arguments )

  9. app/bootstrap.php (55) source   Application-> run ()

  10. web/index.php (13) source   require (arguments )

Nette Application

Environment

HTTP request

HTTP response